package cn.explink.eap.core.metadata.domain;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class MetadataRowMapper implements RowMapper<Metadata> {

	@Override
	public Metadata mapRow(ResultSet rs, int rowNum) throws SQLException {
		Metadata md = new Metadata();
		md.setId(rs.getInt("md_id"));
		md.setCode(rs.getString("md_code"));
		md.setName(rs.getString("md_name"));
		md.setRefTable(rs.getString("md_ref_taable"));

		return md;
	}
}
